/* 人脸注册组件样式 */

.face-register {
  padding: 16px;
  max-width: 100%;
}

.face-register-steps {
  margin-bottom: 24px;
}

.face-register-content {
  min-height: 300px;
}

.face-register-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* 选择照片步骤 */
.face-register-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.face-register-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  min-width: 100px;
}

.face-register-option:hover {
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.face-register-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.face-register-text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.face-register-tips {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  width: 100%;
  max-width: 300px;
}

.face-register-tips h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #333;
}

.face-register-tips ul {
  margin: 0;
  padding-left: 20px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.face-register-tips li {
  margin-bottom: 4px;
}

/* 处理中状态 */
.face-register-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
}

.face-register-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: face-register-spin 1s linear infinite;
}

@keyframes face-register-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 预览步骤 */
.face-register-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.face-register-image {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.face-register-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* 成功步骤 */
.face-register-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  text-align: center;
}

.face-register-success-icon {
  font-size: 48px;
  color: #52c41a;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.face-register-success h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.face-register-info {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #666;
}

.face-register-info p {
  margin: 4px 0;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .face-register {
    padding: 12px;
  }
  
  .face-register-options {
    flex-direction: column;
    gap: 12px;
  }
  
  .face-register-option {
    padding: 16px;
    min-width: 80px;
  }
  
  .face-register-icon {
    font-size: 28px;
  }
  
  .face-register-image {
    max-width: 150px;
    max-height: 150px;
  }
  
  .face-register-tips {
    padding: 12px;
    font-size: 13px;
  }
}

@media (max-width: 375px) {
  .face-register-option {
    padding: 12px;
  }
  
  .face-register-icon {
    font-size: 24px;
  }
  
  .face-register-text {
    font-size: 13px;
  }
  
  .face-register-image {
    max-width: 120px;
    max-height: 120px;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .face-register-option {
    border-color: #404040;
    background: #2d2d2d;
  }
  
  .face-register-option:hover {
    border-color: #007bff;
    background: #3d3d3d;
  }
  
  .face-register-text {
    color: #ffffff;
  }
  
  .face-register-tips {
    background: #2d2d2d;
    color: #cccccc;
  }
  
  .face-register-tips h4 {
    color: #ffffff;
  }
  
  .face-register-info {
    background: #2d2d2d;
    color: #cccccc;
  }
  
  .face-register-success h3 {
    color: #ffffff;
  }
}
